package com.quanyan.user.mapper;

import com.quanyan.user.model.db.TbUserInterest;
import com.quanyan.user.model.db.TbUserInterestExample;
import com.quanyan.user.model.vo.response.QueryUserInterest;
import com.quanyan.user.model.vo.response.RespUserInterest;
import com.quanyan.user.model.vo.response.RespUserSelectInterest;
import com.quanyan.user.response.RespOpenUserInterest;

import java.util.List;
import java.util.Map;

/**
 * Created by yue.yuan on 2016/7/5.
 */
public interface UserInterestMapper {
    int batchUpdateDelete(Map<String, Object> map);

    int batchInsert(List<TbUserInterest> interests);

    List<QueryUserInterest> selectByPage(TbUserInterestExample example);

    int countByExample(TbUserInterestExample example);

    List<String> selectByUserId(Integer userId);

    List<RespUserInterest> getUserInterestList(Map map);

    List<RespUserSelectInterest> getUserSelectInterestList(Map map);

    @Deprecated
    List<RespUserInterest> getUserSelectInterestIdList(Map map);

    List<RespOpenUserInterest> getOpenUserInterestList(Integer uid);

    List<Integer> getCategoryIdList(List<Integer> list);
}
